﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAO;
using DTO;

namespace BUS
{
    public class CT_HoaDonSanPhamBUS
    {
        CT_HoaDonSanPhamDAO cthdspDAO = new CT_HoaDonSanPhamDAO();

        public List<CT_HoaDonSanPhamDTO> LayDanhSachHoaDonSanPham(int ma)
        {
            return cthdspDAO.LayChiTietHoaDonSanPhamTheoMa(ma);
        }

        public String ThemChiTietHoaDonSanPham(CT_HoaDonSanPhamDTO cthdspDTO)
        {
            return cthdspDAO.ThemChiTietHoaDonSanPham(cthdspDTO);
        }
    }
}
